package org.novelhibernate.core.connection;

import java.sql.SQLException;

import org.novelhibernate.core.transaction.Transaction;


public interface ConnectionFactory {

	public static final int DATASOURCE_DRIVEN = 0;
	
	public static final int JDBCSOURCE_DRIVEN = 1;
	
	public static final int EXTERNAL_DRIVEN = 1;
	/**
	 * 
	 * @param autoCommit
	 * @param transactionIsolation
	 * @param isRecordResult
	 * @return
	 * @throws SQLException
	 */
	public Transaction createTransaction(boolean autoCommit,
			            int transactionIsolation, boolean isRecordResult) throws SQLException;
	
	
	
}
